import 'package:flutter/material.dart';
import 'routes.dart';
import 'package:provide/provide.dart';
import './provide/counter.dart';
import './provide/category_goods_list.dart';
import 'package:fluro/fluro.dart';
import 'router_total.dart';
import 'application.dart';
import 'package:flutter_shop/tabs/Tab.dart';


void main(){
  var counter = Counter();
  var providers = Providers();
  var t = T();

  providers
    ..provide(Provider<Counter>.value(counter))
    ..provide(Provider<T>.value(t));
  runApp(ProviderNode(child:MyApp(),providers: providers,));
}

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {

//    final router=Router();
//    Routes.configreRoutes(router);
//    Application.router = router;

    return Container(
      child: MaterialApp(
        initialRoute: '/',
        onGenerateRoute: onGenerateRoute,
        title: '百姓生活+',
         debugShowCheckedModeBanner: false,
         theme: ThemeData(
           primaryColor: Colors.pink,
         ),
//        home: Tabs(),
      ),
    );
  }
}

class HomeContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Text(
      '百姓生活家'
    );
  }
}